package main

import (
	"flag"
	"fmt"
)

func main() {
	flag.Parse()
	args := flag.Args()
	if len(args) != 1 {
		fmt.Printf("Usage: %s [server addr]\n", flag.CommandLine.Name())
		return
	}
	client := NewClient(args[0])
	err := client.Run()
	if err != nil {
		fmt.Println(err)
		return
	}
}
